//
//  UIView+ZTQuickControl.h
//  BlockUseDemo
//
//  Created by quiet on 15/7/15.
//  Copyright (c) 2015年 quiet. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "ZTButton.h"

#import "ZTTableView.h"


@interface UIView (ZTQuickControl)

//!@brief创建系统按钮
-(UIButton *)addSystemButtonWithFrame:(CGRect)frame
                           title:(NSString *)titile
                          action:(void(^)(ZTButton *button))action;

//!@brief 类方法添加一个系统按钮
+(UIButton *)CreateSystemButtonWithFrame:(CGRect)frame
                                   title:(NSString *)titile
                                  action:(void(^)(ZTButton *button))action;


//!@brief创建图片按钮
-(UIButton *)addImageButtonWithFrame:(CGRect)frame
                           title:(NSString *)titile
                         image:(NSString *)image
                          action:(void(^)(ZTButton *button))action;

//!@brief 类方法创建图片按钮
+(UIButton *)CreateImageButtonWithFrame:(CGRect)frame
                                  title:(NSString *)titile
                                  image:(NSString *)image
                                 action:(void(^)(ZTButton *button))action;


//!@brief创建label
-(UILabel *)addLabelWithFrame:(CGRect)frame
                        title:(NSString *)title;


//!@brief 类方法创建label
+(UILabel *)CreateLabelWithFrame:(CGRect)frame
                           title:(NSString *)title;



//!@brief创建imageView
-(UIImageView *)addImageViewWithFrame:(CGRect)frame
                        image:(NSString *)image;

//!@brief 类方法创建imageView
+(UIImageView *)CreateImageViewWithFrame:(CGRect)frame
                                   image:(NSString *)image;


//!@brief创建textfiled
-(UITextField *)addTextFieldWithFrame:(CGRect)frame
                                style:(UITextBorderStyle)style
                             delegate:(id)delegate;

//!@brief 类方法创建textfiled
+(UITextField *)CreateTextFieldWithFrame:(CGRect)frame
                                   style:(UITextBorderStyle)style
                                delegate:(id)delegate;

//!@brief创建tableView
-(ZTTableView*)addTableViewWithRect:(CGRect)rect
                          withStyle:(UITableViewStyle)style;

//!@brief 类方法创建一个tableView
+(ZTTableView*)addTableViewWithRect:(CGRect)rect
                          withStyle:(UITableViewStyle)style;

@end
